package com.sgb.kjwl.model.entity.transport;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.google.gson.annotations.SerializedName;


import java.math.BigDecimal;

public class VehicleHallMapEntity implements MultiItemEntity {

    /**
     * 车辆id
     **/
    @SerializedName(value = "driverAuthId")
    private Long id;

    /**
     * 承运no
     **/
    private String carrierNo;

    /**
     * 车辆No
     */
    @SerializedName(value = "no")
    private String driverAuthNo;
    /**
     * 车主姓名
     **/
    private String carOwnerName;
    private String name;

    @SerializedName(value = "isDumper", alternate = {"isDump"})
    private Integer isDumper;

    private String provinceName;

    //车辆所在市name
    private String cityName;
    //车辆所在区name
    private String districtName;

    private String carImage;

    /**
     * 车牌号
     **/
    private String carNumber;

    /**
     * 车长
     **/
    private String carLenName;

    /**
     * 车型
     **/
    private String carTypeName;

    //栏高
    private String heightHurdle;

    /**
     * 车辆载重
     **/
    private Double weight;

    /**
     * 承运报价
     **/
    private Double freight;

    /**
     * 意向目的地省
     **/
    private String destProvinceName;

    /**
     * 意向目的地市
     **/
    private String destCityName;

    /**
     * 意向目的地区
     **/
    private String destDistrictName;

    /**
     * 司机no
     **/
    private String createUser;

    /**
     * 当前车辆纬度
     **/
    private BigDecimal latitude;

    /**
     * 当前车辆经度
     **/
    private BigDecimal longitude;

    /**
     * 距离（米）
     **/
    private Float distance;

    /**
     * 是否有承运商机 0没有  1有
     **/
    private Integer isCarrierBusiness;

    private String telphone;


//    private RecentContact imContact;//消息数据
//
//    public RecentContact getImContact() {
//        return imContact;
//    }
//
//    public void setImContact(Object imContact) {
//        this.imContact = imContact;
//    }

    private String driverCreateIm;
    private String companyNo;
    private Long authTime;
    private String img;
    private String roleName;
    private String releaseName;
    private int terminal;

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getReleaseName() {
        return releaseName;
    }

    public void setReleaseName(String releaseName) {
        this.releaseName = releaseName;
    }

    public int getTerminal() {
        return terminal;
    }

    public void setTerminal(int terminal) {
        this.terminal = terminal;
    }

    public Long getAuthTime() {
        return authTime;
    }

    public void setAuthTime(Long authTime) {
        this.authTime = authTime;
    }
    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getDriverCreateIm() {
        return driverCreateIm;
    }

    public void setDriverCreateIm(String driverCreateIm) {
        this.driverCreateIm = driverCreateIm;
    }

    public String getNo() {
        return driverAuthNo;
    }

    public void setNo(String no) {
        this.driverAuthNo = no;
    }

    public String getCityName() {
        if (cityName==null)
            return "";
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        if (districtName==null)
            return "";
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public Integer getIsDumper() {
        return isDumper;
    }

    public void setIsDumper(Integer isDumper) {
        this.isDumper = isDumper;
    }

    public String getProvinceName() {
        if (provinceName==null)
            return "";
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDriverAuthNo() {
        return driverAuthNo;
    }

    public void setDriverAuthNo(String driverAuthNo) {
        this.driverAuthNo = driverAuthNo;
    }

    public String getCarrierNo() {
        return carrierNo;
    }

    public void setCarrierNo(String carrierNo) {
        this.carrierNo = carrierNo;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public String getDestProvinceName() {
        return destProvinceName;
    }

    public void setDestProvinceName(String destProvinceName) {
        this.destProvinceName = destProvinceName;
    }

    public String getDestCityName() {
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDestDistrictName() {
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getUserNo() {
        return createUser;
    }

    public void setUserNo(String userNo) {
        this.createUser = userNo;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public Float getDistance() {
        return distance;
    }

    public void setDistance(Float distance) {
        this.distance = distance;
    }

    public Integer getIsCarrierBusiness() {
        if (isCarrierBusiness == null) {
            return 0;
        }
        return isCarrierBusiness;
    }

    public void setIsCarrierBusiness(Integer isCarrierBusiness) {
        this.isCarrierBusiness = isCarrierBusiness;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    @Override
    public int getItemType() {
        return 0;
    }

    public class UserVO {
        private String no;

        private String username;

        private String password;

        private String realName;

        private String companyName;

        private Integer type;

        private Long id;

        private String identityCard;
        //手机号
        private String telPhone;
        //网易云信账号
        private String imAccount;
        //网易云信token
        private String imToken;

        public String getNo() {
            return no;
        }

        public void setNo(String no) {
            this.no = no;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getRealName() {
            return realName;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getIdentityCard() {
            return identityCard;
        }

        public void setIdentityCard(String identityCard) {
            this.identityCard = identityCard;
        }

        public String getTelPhone() {
            return telPhone;
        }

        public void setTelPhone(String telPhone) {
            this.telPhone = telPhone;
        }

        public String getImAccount() {
            return imAccount;
        }

        public void setImAccount(String imAccount) {
            this.imAccount = imAccount;
        }

        public String getImToken() {
            return imToken;
        }

        public void setImToken(String imToken) {
            this.imToken = imToken;
        }

    }

    public String getCarOwnerName() {
        return carOwnerName;
    }

    public void setCarOwnerName(String carOwnerName) {
        this.carOwnerName = carOwnerName;
    }

    public String getCarImage() {
        return carImage;
    }

    public void setCarImage(String carImage) {
        this.carImage = carImage;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
